FROM java:openjdk-8-jdk-alpine

WORKDIR /usr/local/
RUN apk add --no-cache curl
HEALTHCHECK --interval=10s --timeout=3s --retries=5 CMD curl -f http://localhost/swagger-ui.html || exit 1

ENTRYPOINT exec java $JAVA_OPTS -jar app.jar

COPY ./target/KnowledgeApi*.jar /usr/local/app.jar